package edu.sctu.zcy.month201505.day20150506;

/**
 * Created by user24 on 2015/5/6.
 */
public class IrragularArray {
    public static void main(String[] args) {

        int[][] arr = new int[3][];

        arr[0] = new int[2];
        arr[1] = new int[2];
        arr[2] = new int[3];

        for (int i = 0; i < arr.length; i++){

            for (int j = 0; j < arr[i].length; j++){

                arr[i][j]=i+j;
            }
        }

        System.out.println("arr数组：");

        for (int i = 0; i < arr.length; i++) {

            for (int j = 0; j < arr[i].length; j++){

                System.out.print(arr[i][j] + " ");
            }

                System.out.println();
        }
    }
}
